Step 1 - Import content and create the background

In this step you first create and prepare a project in Kanzi Studio. You start working with material types, materials, and textures in the next step.

In this step you first create a new project, import the content to your project, and define the background for the scene of your project.

Assets for the tutorial

The assets you use in this tutorial are stored in <KanziWorkspace>/Tutorials/Materials textures and rendering/Assets:

Completed directory contains the completed Kanzi Studio project of this tutorial.

Create a new Kanzi Studio project and import content

  1. In the Kanzi Studio Quick Start window click New Project...:

    Leave all other settings as they are, and click OK.


  2. In the Project window you can see the structure of your project.
  3. In the Assets window located in the bottom part of the Kanzi Studio window click Import Assets.

  4. Go to the <KanziWorkspace>/Tutorials/Materials textures and rendering and import the content of the 3DAssets and Textures directories.
    Kanzi Studio imports the assets and shows them in the Assets window.
  5. In the Project drag and drop the Prefabs > Car scene to the Viewport 2D to make the imported content visible in the Preview.
    When asked whether you want to replace the existing Viewport 2D scene, click Yes.


    You can now see the imported content in the Preview.

Create the background and the floor below the car

  1. In the Project select the RootPage, in the Properties set the Background Brush property to <Create color brush...>.
    Kanzi Studio creates a black color brush and sets the Background Brush property of the RootPage to use that color brush.
    Tip You can find the list of all brushes in a project in Library > Materials and Textures > Brushes.
  2. In the Library right-click Materials and Textures and select Load Material Type From Disk, go to <KanziInstallation>/Studio/Asset Library/MaterialTypes/General, select PhongTextured.kzmat material type, and click Open.
    Kanzi Studio adds PhongTextured material type to Materials and Textures > MaterialTypes.
    You can use this material type for all materials in which you want to use textures.
  3. In the Library > Materials and Textures > Materials select the Floor_1 material, and in the Properties set:
    Floor_1 material defines the material that is used for the floor below the car. In this step you set the Floor_1 material to a material type that allows you to use textures, and apply a texture with the shadow of the car.

< PREVIOUS STEP

NEXT STEP >

See also

To find out more about importing content to your projects, see Importing.

To find out more about brushes, see Using brushes.